<?php

namespace App\Observers;

use App\Jobs\NoticeJobMail;
use App\Models\Notice;
use Mail;
use Illuminate\Mail\Message;
class NoticeObserver
{
    public function created(Notice $notice){
        dispatch(new NoticeJobMail($notice));
    }
}
